/* Set-Fine.rexx V1.3 -- Sets AUDIO and/or VIDEO clips to either Fine Tune or Quick Tune display modes - from the SELECTED icon through to a STOP icon or End of Project
call req_open("Set Fine Tune - by Aussie","------------------------","Sets video and/or audio clips, to Simple or Fine-Tune","window displays. From SELECTED icon to END (or STOP icon)")
Mode=req_number("1:Simple 2:Fine Tune",2,1,2)
call req_close()
If Mode="CANCEL" then call quit()
Mode=Mode-1
test=req_buttons("Now pick which clips to control...","11","Audio clips","Video clips")
if test="CANCEL" | test="00" then call quit()
if test="01" then cp=1
if test="10" then cp=2
if test="11" then cp=3
if cp=1 then note1="Video clips only"
if cp=2 then note1="Audio clips only"
if cp=3 then note1="Both Video & Audio clips"
if test=0 then call quit()
current_spot=start_loc
do while (current_spot<project_end+1)
call croutonpick(current_spot)
current_spot=current_spot+1
/* ------------------ test for STOP icon */
if croutontype()="CTRL" then do
test=croutonname()
test1=right(test,length(test)-lastpos("/",test))
test3=("STOP" = upper(test1))
if test3=1 then do
call croutonpick(start_loc)
call req_error(" OZ: All done, till STOP crouton <<< Fine Tune Windows >>>")
call quit2()
end
end
if ((cp=1 | cp=3) & croutontype()="CLIP") | (cp>1 & croutontype()=" AUD") then do
test=croutongettag(AUDIOON)
if test>2 then call croutonsettag(panelmode,Mode)
end
end
call croutonpick(start_loc)
call req_error(" OZ: All Done! <<< Fine Tune Windows >>>")
call remlib("PROJECT_REXX_PORT")
exit
quit:
call croutonpick(start_loc)
call req_error(" OZ: <<< Last Operation Canceled >>>")